package com.njwb.pojo;

public class Student {
/*    sid int primary key auto_increment,
    sname varchar(64),
    sage int,
    slike varchar(20),
    addr varchar(2)*/

    int sid;
    String sname;
    int sage;
    String slike;
    String addr;

    public Student() {
    }

    public Student(String sname, int sage, String slike, String addr) {
        this.sname = sname;
        this.sage = sage;
        this.slike = slike;
        this.addr = addr;
    }


    public void setSid(int sid) {
        this.sid = sid;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public void setSage(int sage) {
        this.sage = sage;
    }

    public void setSlike(String slike) {
        this.slike = slike;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }
    @Override
    public String toString() {
        return "Student{" +
                "id=" + sid +
                ", sname='" + sname + '\'' +
                ", sage=" + sage +
                ", slike='" + slike + '\'' +
                ", addr='" + addr + '\'' +
                '}';
    }

}
